package com.amoyhong.hongWhether.utils;

import java.util.UUID;

/**
 * Created by Administrator on 2016/1/9.
 */
public class MainUtil {

    public static String deviceUUID;
    public static double convertToFahrenheitFromKelvin(double kelvin){
        return kelvin-273.15;
    }

    public static String generateDeviceUUID() {
        if (deviceUUID==null) {
            deviceUUID = UUID.randomUUID().toString();
        }
        return deviceUUID;
    }
}
